{% extends 'goods/goodbase.html' %}

{% block head %}
<script type="text/javascript" src="/static/js/jquery-ui.min.js"></script>
	<script type="text/javascript" src="/static/js/slide.js"></script>
{% endblock head %}





{% block body %}

  <div class="navbar_con">
        <div class="navbar clearfix">
            <div class="subnav_con fl">
                <h1>全部商品分类</h1>
                <span></span>
                <ul class="subnav">
                    <li><a href="/list/1/1/1/" class="fruit">新鲜水果</a></li>
                    <li><a href="/list/1/2/1/" class="seafood">海鲜水产</a></li>
                    <li><a href="/list/1/3/1/" class="meet">猪牛羊肉</a></li>
                    <li><a href="/list/1/4/1/" class="egg">禽类蛋品</a></li>
                    <li><a href="/list/1/5/1/" class="vegetables">新鲜蔬菜</a></li>
                    <li><a href="/list/1/6/1/" class="ice">速冻食品</a></li>
                </ul>
            </div>
            <ul class="navlist fl">
                <li><a href="/">首页</a></li>
                <li class="interval">|</li>
                <li><a href="/">手机生鲜</a></li>
                <li class="interval">|</li>
                <li><a href="/">抽奖</a></li>
            </ul>
        </div>
    </div>
	<div class="center_con clearfix">
		<ul class="subnav fl">
			<li><a href="#model01" class="fruit">新鲜水果</a></li>
			<li><a href="#model02" class="seafood">海鲜水产</a></li>
			<li><a href="#model03" class="meet">猪牛羊肉</a></li>
			<li><a href="#model04" class="egg">禽类蛋品</a></li>
			<li><a href="#model05" class="vegetables">新鲜蔬菜</a></li>
			<li><a href="#model06" class="ice">速冻食品</a></li>
		</ul>
		<div class="slide fl">
			<ul class="slide_pics">
				<li><img src="/static/images/slide.jpg" alt="幻灯片"></li>
				<li><img src="/static/images/slide02.jpg" alt="幻灯片"></li>
				<li><img src="/static/images/slide03.jpg" alt="幻灯片"></li>
				<li><img src="/static/images/slide04.jpg" alt="幻灯片"></li>
			</ul>
			<div class="prev"></div>
			<div class="next"></div>
			<ul class="points"></ul>
		</div>
		<div class="adv fl">
			<a href="#"><img src="/static/images/adv01.jpg"></a>
			<a href="#"><img src="/static/images/adv02.jpg"></a>
		</div>
	</div>

    {% for good in goods %}



	<div class="list_model">
		<div class="list_title clearfix">
			<h3 class="fl" id="model0{{ forloop.counter }}">{{ good.type.ttitle }}</h3>
			<div class="subtitle fl">
				<span>|</span>
                {% for n in good.news %}
{#                    <h1>执行没</h1>#}
                    <a href="/{{ n.id }}/">{{ n.gtitle }}</a>
                {% endfor %}

			</div>
			<a href="/list/1/{{ good.type.id }}/1/" class="goods_more fr" id="fruit_more">查看更多 ></a>
		</div>

		<div class="goods_con clearfix">
			<div class="goods_banner fl"><img src="/static/images/banner0{{ good.type.id }}.jpg"></div>
			<ul class="goods_list fl">
                {% for h in good.hots %}

                <li>
					<h4><a href="/{{ h.id }}/">{{ h.gtitle }}</a></h4>
					<a href="/{{ h.id }}/"><img src="/static/media/{{ h.gpic }}"></a>
					<div class="prize">¥ {{ h.gprice }}</div>
				</li>
                {% endfor %}



			</ul>
		</div>
	</div>

{% endfor %}


	<script type="text/javascript" src="/static/js/slide.js"></script>
	<script type="text/javascript">
{#		BCSlideshow('focuspic');#}
		var oFruit = document.getElementById('fruit_more');
		var oShownum = document.getElementById('show_count');

		var hasorder = localStorage.getItem('order_finish');

		if(hasorder)
		{
			oShownum.innerHTML = '12';
		}

		oFruit.onclick = function(){
			window.location.href = 'list.html';
		}
	</script>

{% endblock body %}